#!/bin/bash
# rename_files.sh
# 将当前目录下所有扩展名为.txt的文件重命名为.fasta文件
for file in *.txt; do
	base=$(basename "$file" .txt)
	newname="${base}.fasta"
	echo "Renaming $file to $newname"
	mv "$file" "$newname"
done
echo "批量重命名完成！"